// Copyright 2022 a.o.smith ALL Rights Reserved
package com.liuxinlong.modules.dao.impl;

import com.liuxinlong.modules.dao.PatentGoodsRelationDao;
import com.liuxinlong.modules.entity.PatentGoodsRelation;
import com.liuxinlong.modules.mapper.PatentGoodsRelationMapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 类描述
 * <p>
 * 此类关联设计的功能
 *
 * @author liuxinlong@hotwater.com.cn
 * @version 1.0.0
 * @since 2023年11月23日
 */
@Service
public class PatentGoodsRelationDaoImpl extends ServiceImpl<PatentGoodsRelationMapper, PatentGoodsRelation> implements PatentGoodsRelationDao {

	@Override
	public List<PatentGoodsRelation> pageGoodsRelationList(String productId) {
		return baseMapper.pageGoodsRelationList(productId);
	}

	@Override
	public void deleteByProduct(String productId) {
 		baseMapper.deleteByProduct(productId);
	}

	@Override
	public Map<String, Map<String, String>> getRelationMap() {
		return baseMapper.getRelationMap();
	}
}
